<div class='center_form'>
    
    <div class="center_form_right">
       <?php
        if(AAService::isAllowed("emaillog", "delete")){
        ?>
        <div class='center_form_btn_div' onclick='javascript:Common.deleteSubmit("<?php echo HttpUtil::baseUrl();?>/systemlog/emaillog/delete/id/<?php echo $this->id;?>")'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/delete.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("delBtn");?></div>
        </div>
       <?php }?>    
       <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/systemlog/emaillog");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("returnBtn"); ?></div>
        </div>
    </div>
</div>
<div class="clear"></div>


<div class="centerbig_form">
      <div class="center_top"><span class="center_top_title"><?php echo $this->translate("viewEmailDetail"); ?></span></div>
      <div class="right_form_content">
            <div class="centerbig_right">
               <div class="form_content" style="margin:10px 20px 10px 20px; ">
                    <form action="" method="post">
                      <table class="email_table" cellspacing="0" cellpadding="0" border="0">
                          <tr>
                          	<td class="table_header"><?php echo $this->translate("id").':';?></td>
                          	<td> <?php echo $this->emailLog['id'];?></td>
                          </tr>
                          <tr>
                          	<td class="table_header"><?php echo $this->translate("emailType").':';?></td>
                          	<td> <?php echo LogConstant::getEmailType($this->emailLog['email_type']);?></td>
                          </tr>
                          <tr>
                          	<td  class="table_header"><?php echo $this->translate("sendTo").':';?></td>
                          	<td> 
                          	   <?php 
                                 $i = 1;
                                 foreach($this->emailLog['send_to'] as $toEmail){ 
                                 	if($i>1){
                                 		echo ", ";
                                 	}
                                 ?>
                                <span><?php echo $toEmail;?></span>
                              
                               <?php $i++; } ?>
                          	</td>
                          </tr>
                          <tr>
                          	<td  class="table_header"><?php echo $this->translate("sendCc").':';?></td>
                          	<td> 
                          	   <?php 
                                 $i = 1;
                                 foreach($this->emailLog['send_cc'] as $toEmail){ 
                                 	if($i>1){
                                 		echo ", ";
                                 	}
                                 ?>
                                <span><?php echo $toEmail;?></span>
                              
                               <?php $i++; } ?>
                          	</td>
                          </tr>
                          <tr>
                          	<td  class="table_header"><?php echo $this->translate("description").':';?></td>
                          	<td> <?php echo $this->emailLog['description'];?></td>
                          </tr>
                          <tr >
                          	<td  class="table_header"><?php echo $this->translate("sendDate").':';?></td>
                          	<td > <?php echo $this->emailLog['created'];?></td>
                          </tr>
                         </table>
                       
                    </form>
               </div>
            </div>
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>